-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core: add ETCS LOA logic to ETCS braking simulator #10316
Conversation
b0ec3e8
to
ba9f038
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #10316 +/- ##
==========================================
- Coverage 81.78% 81.76% -0.02%
==========================================
Files 1073 1073
Lines 106492 106492
Branches 727 727
==========================================
- Hits 87095 87076 -19
- Misses 19358 19377 +19
Partials 39 39
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
cb6893a
to
bbbd885
Compare
bbbd885
to
6d85230
Compare
41c408e
to
dff72ae
Compare
7e31c30
to
bbbab6f
Compare
dff72ae
to
6fe9bff
Compare
f0eed6e
to
556d53d
Compare
3adb1dc
to
61f6cc8
Compare
1998907
to
9f86660
Compare
5bfa910
to
8350dfe
Compare
7a7883b
to
655a2f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job! I only have some minor comments.
I haven't double-checked the formulas as much as I'd have liked to, it's quite difficult to get familiar enough with the reference doc.
Do you think we could add some asserts
here and there? It would be valuable in this context.
core/envelope-sim/src/main/kotlin/fr/sncf/osrd/envelope_sim/etcs/Constants.kt
Outdated
Show resolved
Hide resolved
core/envelope-sim/src/main/kotlin/fr/sncf/osrd/envelope_sim/etcs/Constants.kt
Outdated
Show resolved
Hide resolved
core/envelope-sim/src/main/kotlin/fr/sncf/osrd/envelope_sim/etcs/ETCSBrakingCurves.kt
Outdated
Show resolved
Hide resolved
core/envelope-sim/src/main/kotlin/fr/sncf/osrd/envelope_sim/etcs/ETCSBrakingCurves.kt
Show resolved
Hide resolved
core/envelope-sim/src/main/kotlin/fr/sncf/osrd/envelope_sim/etcs/ETCSBrakingCurves.kt
Outdated
Show resolved
Hide resolved
core/envelope-sim/src/main/kotlin/fr/sncf/osrd/envelope_sim/etcs/ETCSBrakingCurves.kt
Outdated
Show resolved
Hide resolved
core/envelope-sim/src/main/kotlin/fr/sncf/osrd/envelope_sim/etcs/ETCSBrakingCurves.kt
Outdated
Show resolved
Hide resolved
785ca9c
to
f95b0b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not review LoA precisely (will do even if merged, improving late is better than nothing on the matter).
It's OK to merge IMO as long as we can hand-test this, and as long as it doesn't break "normal" braking. So please do if I don't have the time to review LoA before the deadline 🙏
core/envelope-sim/src/main/kotlin/fr/sncf/osrd/envelope_sim/etcs/ETCSBrakingCurves.kt
Outdated
Show resolved
Hide resolved
2d5c58d
to
5fd6dac
Compare
Signed-off-by: Erashin <[email protected]>
…envelope Signed-off-by: Erashin <[email protected]>
5fd6dac
to
e93a30e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, and the simplifications you did here and there are very welcome 🙏
We may dig a bit on mutualizing the code... Let's see how it goes with SvL!
LOA logic (see Subset given in code): compute indication curve from EBD.
To do so, couple of technicalities: